<%-- 
    Document   : materialForm
    Created on : 28/08/2011, 11:17:49
    Author     : Graciano
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include file="../../WEB-INF/imports.jspf" %>
<link rel="stylesheet" type="text/css" href="css/tabelaMod.css" />
<div align="center">
    <p>Materiais</p>
    <table id="tabela_color">
        <tr id="tr">
            <th id="th">Nome</th>
            <th id="th"></th>
            <th id="th"></th>
        </tr>
        <c:forEach var="row" items="${pojos}">
            <tr id="tr">
                <td id="td">${row.nome} </td>
                <td id="td"><a href="LoadFile.mtw?id=${row.id}">salvar</a></td>
                <td id="td"><a href="RemoveFile.mtw?id=${row.id}">remover</a></td>
            </tr>
        </c:forEach>
    </table>

</div>
<br>
<br>
<br>
<div align="center">
    <form method="post" action="MaterialCreate.mtw" enctype="multipart/form-data">
        <mtw:input type="hidden" name="aulaId" id="aulaId"/>
        <input type="hidden" value="0" id="theValue" />
        <table>
            <tr>
                <td></td>
                <td></td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <div id="myDiv">
                        <p><input type="file" id="anexo0" name="anexo0"/></p>
                    </div>
                    <input type="button" value="Novo Arquivo" onclick="addElement();"/>
                </td>
            </tr>
            <tr>
                <td></td>
                <td><br><input type="submit" value="Confimar"/><input type="button" value="Voltar" onclick="location. href='AulaRead.mtw'"/></td>
                
            </tr>
            <tr>
                <td></td>
                <td><br></td>
            </tr>
        </table>
        
    </form>
</div>